using System;

 namespace QLST_DTO 
{
	 [Serializable]
	 public class PHIEU_XUAT
	{
	private int soPhieu;
	private int maQuay;
	private DateTime ngayXuat;
	private int tongSoLuong;
	private float tongTien;
	private int maNVPP;
	public PHIEU_XUAT()
	{}
	public PHIEU_XUAT(int soPhieu,int maQuay,DateTime ngayXuat,int tongSoLuong,float tongTien,int maNVPP)
	{
	this.soPhieu = soPhieu;
	this.maQuay = maQuay;
	this.ngayXuat = ngayXuat;
	this.tongSoLuong = tongSoLuong;
	this.tongTien = tongTien;
	this.maNVPP = maNVPP;
	}
	public int SoPhieu{
	get { return this.soPhieu;}
	set { if(value==null) 
		throw new Exception("soPhieu not allow nullvalue.");
		this.soPhieu=value;
	}	}
	public int MaQuay{
	get { return this.maQuay;}
	set { if(value==null) 
		throw new Exception("maQuay not allow nullvalue.");
		this.maQuay=value;
	}	}
	public DateTime NgayXuat{
	get { return this.ngayXuat;}
	set { if(value==null) 
		throw new Exception("ngayXuat not allow nullvalue.");
		this.ngayXuat=value;
	}	}
	public int TongSoLuong{
	get { return this.tongSoLuong;}
	set { if(value==null) 
		throw new Exception("tongSoLuong not allow nullvalue.");
		this.tongSoLuong=value;
	}	}
	public float TongTien{
	get { return this.tongTien;}
	set { if(value==null) 
		throw new Exception("tongTien not allow nullvalue.");
		this.tongTien=value;
	}	}
	public int MaNVPP{
	get { return this.maNVPP;}
	set { if(value==null) 
		throw new Exception("maNVPP not allow nullvalue.");
		this.maNVPP=value;
	}	}
	public override string ToString(){
	return this.soPhieu+"; "+this.maQuay+"; "+this.ngayXuat+"; "+this.tongSoLuong+"; "+this.tongTien+"; "+this.maNVPP+"; ";
	}
	public override bool Equals(Object obj)
	{
	PHIEU_XUAT me=(PHIEU_XUAT)obj;
	bool ret=this.SoPhieu.Equals(me.SoPhieu);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.SoPhieu.GetHashCode();
	}

	}
} 